
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Examples &#8212; LammpsIO 1.0 documentation</title>
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
    
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Documentation" href="modules.html" />
    <link rel="prev" title="Installation Instructions" href="installation.html" /> 
  </head><body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="modules.html" title="Documentation"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="installation.html" title="Installation Instructions"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">LammpsIO 1.0 documentation</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="examples">
<h1>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h1>
<div class="section" id="netcdfio">
<h2>NetCDFIO<a class="headerlink" href="#netcdfio" title="Permalink to this headline">¶</a></h2>
<p>The following code reads the first (<em>f = 0</em>) and the fourth (<em>f = 3</em>)
frames of a netCDF file labeled <em>test_in.nc</em>. This input file has a data
column labeled <em>rand</em>. It then outputs these two frames as a single
netCDF file, <em>test_out.nc</em>. Code is available at
<a class="reference external" href="https://github.com/Ivancic91/LammpsIO">https://github.com/Ivancic91/LammpsIO</a> in the examples directory.</p>
<img alt="_images/nc1.png" src="_images/nc1.png" />
<img alt="_images/nc2.png" src="_images/nc2.png" />
</div>
<div class="section" id="dumpio">
<h2>DumpIO<a class="headerlink" href="#dumpio" title="Permalink to this headline">¶</a></h2>
<p>The following code reads the first (<em>f = 0</em>) and the fourth (<em>f = 3</em>)
frames of a dump file labeled <em>test_in.lammpstrj</em>. This input file has
a data column labeled <em>rand</em>. It then outputs these two frames as a single
dump file, <em>test_out.lammpstrj</em>. Code is available at
<a class="reference external" href="https://github.com/Ivancic91/LammpsIO">https://github.com/Ivancic91/LammpsIO</a> in the examples directory.</p>
<img alt="_images/dump1.png" src="_images/dump1.png" />
<img alt="_images/dump2.png" src="_images/dump2.png" />
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Examples</a><ul>
<li><a class="reference internal" href="#netcdfio">NetCDFIO</a></li>
<li><a class="reference internal" href="#dumpio">DumpIO</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="installation.html"
                        title="previous chapter">Installation Instructions</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="modules.html"
                        title="next chapter">Documentation</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/examples.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="modules.html" title="Documentation"
             >next</a> |</li>
        <li class="right" >
          <a href="installation.html" title="Installation Instructions"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">LammpsIO 1.0 documentation</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2018, Robert J. S. Ivancic.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.0.
    </div>
  </body>
</html>